<?php

namespace App\Console\Commands\Wanggui;

use App\Console\Commands\Traits\ExcelCommandTrait;
use App\Service\Wanggui\Import\FloorData;
use App\Service\Wanggui\Import\RecommendFloorData;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Console\Command;

class ImportFloorData extends Command
{
    use ExcelCommandTrait;
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'wanggui:import-floor-data';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '导入楼层数据';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     * @throws GuzzleException
     */
    public function handle()
    {
        $defaultUrl = '';

        $this->excelImport(FloorData::class, $defaultUrl);
    }
}
